package org.dingyom.org.service.impl;

import org.dingyom.org.domain.Department;
import org.dingyom.org.mapper.DepartmentMapper;
import org.dingyom.org.service.IDepartmentService;
import org.dingyom.basics.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dingyom
 * @since 2022-09-01
 */
@Service
public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService {

    @Autowired
    DepartmentMapper mapper;
    @Override
    public List<Department> getTree() {
        return mapper.loadTree();
    }
}
